import styled from 'styled-components'
import { ThemeColor } from '../../common/globalStyle'

export const Subjects = styled.ul`
  li {
    a {
      padding: 3px 10px;
      color: #666;
      margin-right: 10px;
      font-size: 14px;
      border-radius: 5px;
      &.active {
        background: #C3DF64;
        color: #fff;
      }
    }
  }
`

export const TeacherList = styled.ul`
  a {
    &:hover .teacher-info {
      background: ${ThemeColor};
      p {
        color: #fff;
      }
    }
  }
  li{
    display: block;
    width: 300px;
    padding: 20px 20px 20px 0px;
    float: left;
    position: relative;
    height: 195px;
    box-sizing: border-box;
    img {
      width: 125px;
      height: 125px;
      border-radius: 50%;
      display: inline-block;
      position: absolute;
      top: 35px;
      z-index: 9;
    }
    .teacher-info {
      box-sizing: border-box;
      overflow: hidden;
      border: 1px solid #ccc;
      width: 220px;
      right: 0px;
      height: 155px;
      position: absolute;
      right: 20px;
      top: 20px;
      background-color: #f3f5f9;
      padding: 15px 15px 15px 75px;
      p {
        font-size: 12px;
        color: #666;
        line-height: 20px;
        height: 40px;
        overflow: hidden;
        &.name {
          font-size: 20px;
          font-weight: bold;
          height: auto;
          margin: 0px;
        }
        &.school {
          font-size: 14px;
          margin-bottom: 10px;
          height: auto;
        }
      }
    }
  }
`
